package pojo;

import java.util.Date;

/**
 * Message entity. @author MyEclipse Persistence Tools
 */

public class Message implements java.io.Serializable {

	// Fields

	private long messageId;
	private User user;
	private long receiveId;
	private String messageContent;
	private Date sendTime;
	private boolean read;

	// Constructors

	/** default constructor */
	public Message() {
	}

	/** full constructor */
	public Message(User user, long receiveId, String messageContent,
			Date sendTime, boolean read) {
		this.user = user;
		this.receiveId = receiveId;
		this.messageContent = messageContent;
		this.sendTime = sendTime;
		this.read = read;
	}

	// Property accessors

	public long getMessageId() {
		return this.messageId;
	}

	public void setMessageId(long messageId) {
		this.messageId = messageId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public long getReceiveId() {
		return this.receiveId;
	}

	public void setReceiveId(long receiveId) {
		this.receiveId = receiveId;
	}

	public String getMessageContent() {
		return this.messageContent;
	}

	public void setMessageContent(String messageContent) {
		this.messageContent = messageContent;
	}

	public Date getSendTime() {
		return this.sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public boolean getRead() {
		return this.read;
	}

	public void setRead(boolean read) {
		this.read = read;
	}

}